package com.pine.common.beans.pineframework.request;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统字典项表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-16
 */
@Data
@Schema(title = "SysDictItemSaveOrUpdateRequest", description = "系统字典项表新增或修改请求体")
public class SysDictItemSaveOrUpdateRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -4610797587856203329L;

    /**
     * 主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;
    /**
     * 字典ID
     */
    @NotNull(message = "字典ID不能为空")
    @Schema(title = "dictId", description = "字典ID")
    private Long dictId;
    /**
     * 字典项名称
     */
    @NotBlank(message = "字典项名称不能为空")
    @Schema(title = "name", description = "字典项名称")
    private String name;
    /**
     * 字典项值
     */
    @NotBlank(message = "字典项值不能为空")
    @Schema(title = "value", description = "字典项值")
    private String value;
    /**
     * 状态:0=启用,1=禁用
     */
    @Schema(title = "status", description = "状态:0=启用,1=禁用")
    private Integer status;
    /**
     * 显示顺序
     */
    @Schema(title = "sort", description = "显示顺序")
    private Integer sort;
    /**
     * 描述、备注
     */
    @Schema(title = "remark", description = "描述、备注")
    private String remark;
}
